import java.util.Scanner;

public class q2 {
    public static void main(String[] args) {
        int random =(int)(Math.random()*100);
        int guess;
        Scanner sc =  new Scanner(System.in);
        for(;;){
            System.out.println("Please enter a number between 0 to 100");
            guess = sc.nextInt();
            if(guess == random) {
                System.out.println("You guessed it!");
                break;
            } else if(guess < random) {
                System.out.println("Too low!");
            } else {
                System.out.println("Too high!");
            }
        }

    }
}


